//
//  NSDictionary+NullHandler.m
//  mUBB
//
//  Created by Cosmin Stirbu on 1/17/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import "NSDictionary+NullHandler.h"

@implementation NSDictionary (NullHandler)

- (id)getJSONObjectForKey:(NSString *)key {
    id object = [self objectForKey:key];
    if ([object isKindOfClass:[NSNull class]])
        return nil;
    return object;
}

@end
